import { BasicColumn, FormSchema } from '@apps/antd-admin/src/components/table';

export const columns: BasicColumn[] = [
  {
    title: '创建日期',
    dataIndex: 'buyDate',
    width: 120,
  },
  {
    title: '会员姓名',
    dataIndex: 'userName',
    width: 120,
  },
  {
    title: '手机号',
    dataIndex: 'userPhone',
    width: 120,
  },
  {
    title: '会员卡号',
    dataIndex: 'vipcardNo',
    width: 150,
  },
  {
    title: '卡种名称',
    dataIndex: 'cardName',
    width: 120,
  },
  {
    title: '开卡地',
    dataIndex: 'openAirport',
    width: 150,
  },
  {
    title: '支付金额',
    dataIndex: 'cardAmount',
    width: 120,
  },
  {
    title: '首次核销日期',
    dataIndex: 'firstHexiaoDate',
    width: 120,
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'userName',
    label: '姓名',
    component: 'Input',
    colProps: { span: 5 },
  },
  {
    field: 'mobile',
    label: '手机号',
    component: 'Input',
    colProps: { span: 5 },
  },
  {
    field: 'vipCardNo',
    label: '卡号',
    component: 'Input',
    colProps: { span: 5 },
  },
  {
    field: 'openAirport',
    label: '开卡地',
    colProps: { span: 5 },
    component: 'Input',
  },
  {
    field: 'startDate',
    label: '首次使用开始日期',
    component: 'DatePicker',
    colProps: { span: 5 },
    componentProps: {
      valueFormat: 'YYYY-MM-DD',
      format: 'YYYY-MM-DD',
    },
  },
  {
    field: 'endDate',
    label: '首次使用结束日期',
    component: 'DatePicker',
    colProps: { span: 5 },
    componentProps: {
      valueFormat: 'YYYY-MM-DD',
      format: 'YYYY-MM-DD',
    },
  },
];
